package com.xjtu.platform.respondent.respond.dao;


import com.xjtu.platform.common.CurrentUser;
import com.xjtu.platform.respondent.respond.Respond;
import com.xjtu.platform.respondent.respond.RespondDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface RespondDao {
    List<Respond> findRespondList(CurrentUser currentUser);

    @Update("update user set user_name = #{user_name},age = #{age},email = #{email},phone = #{phone},favor = #{favor} where user_id = #{user_id}")
    void setinfo(RespondDto dto);


}
